cmake_minimum_required(VERSION 3.0)

# set(CMAKE_C_COMPILER C:/mingw64/bin/gcc.exe)
# set(CMAKE_CXX_COMPILER C:/mingw64/bin/g++.exe)

set(projectName day2)
# message(${VCPKG_ROOT})
 #set(CMAKE_TOOLCHAIN_FILE ${VCPKG_ROOT})

 set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fexec-charset=GBK")

project(${projectName})

#set(CMAKE_BUILD_TYPE DEBUG)
add_definitions(-g)

include_directories(src/include)

find_package(Vulkan REQUIRED)
include_directories(${Vulkan_INCLUDE_DIR})

message(STATUS ${Vulkan_INCLUDE_DIR})
message(STATUS ${Vulkan_LIBRARY})
find_package(SDL2 REQUIRED)
message(STATUS ${SDL2_DIR})
message(STATUS ${SDL2_INCLUDE_DIRS})
message(STATUS ${SDL2_LIBS})
message(STATUS ${SDL2_LIBRARIES})
include_directories(${SDL2_INCLUDE_DIRS})
#find_package(sdl2-ttf CONFIG REQUIRED)

set(EXECUTABLE_OUTPUT_PATH ${CMAKE_BINARY_DIR}/../bin)
set(LIBRARY_OUTPUT_PATH ${CMAKE_LIBRARY_DIR}/../bin)
# set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_LIBRARY_DIR}/../bin)
#set(RUNTIME_OUTPUT_DIRECTORY  ${CMAKE_LIBRARY_DIR}/../bin)



add_subdirectory(src)
add_subdirectory(src/graphics)

#set_target_properties(${projectName} PROPERTIES RUNTIME_OUTPUT_DIRECTORY ${CMAKE_LIBRARY_DIR}/../bin)